package cn.org.donald.framework.auth.config;

import org.apache.shiro.authc.AuthenticationToken;

import java.io.Serializable;

/**
 * @author ： Donald
 * @date ： 2020/10/19 00:31
 * @description：
 */
public class JWTToken implements AuthenticationToken, Serializable {

    private String jwtToken;

    public JWTToken() {
    }

    public JWTToken(String jwtToken) {
        this.jwtToken = jwtToken;
    }

    public String getJwtToken() {
        return jwtToken;
    }

    public void setJwtToken(String jwtToken) {
        this.jwtToken = jwtToken;
    }

    @Override
    public Object getPrincipal() {
        return this.jwtToken;
    }

    @Override
    public Object getCredentials() {
        return true;
    }
}
